package com.xmu.edu.tisp.webservice;

//special deal with service update result
//By Chenbo 2011-08-06

import java.util.List;
import org.w3c.dom.Node;

public class ServiceXmlResult extends ServiceXmlParser {

	public ServiceXmlResult(String xml){
		super(xml);
	}
	
	public boolean isSuccess(){
		Node root=xmlDoc.getFirstChild();
		try{
			String ok=root.getAttributes().getNamedItem("ISSucce").getNodeValue().trim();
			return ok.equalsIgnoreCase("yes");
		}
		catch(Exception ex){
			return false;
		}
	}
	
	public List<String> getUpdateIds(String master){
		return getIds(master);
	}
	
}
